Skip to content

Conversation

@cpsievert
Copy link
Contributor

@cpsievert cpsievert commented Dec 1, 2025

Add querychat.data module with sample datasets

Closes #118

Adds a new querychat.data module with built-in sample datasets (titanic() and tips()) to make it easier to get started without external dependencies.

Example

from querychat import QueryChat
from querychat.data import titanic

df = titanic()
qc = QueryChat(df, "titanic")
app = qc.app()

Changes

  • New querychat.data module with titanic() and tips() functions
  • Datasets stored as gzipped CSVs (8.5KB total) using importlib.resources
  • Updated all examples and documentation to use the new data module
  • Added comprehensive test suite (10 new tests)

@cpsievert cpsievert marked this pull request as ready for review December 1, 2025 22:52
@cpsievert cpsievert requested a review from Copilot December 1, 2025 22:52

This comment was marked as resolved.

@cpsievert cpsievert merged commit fea52e4 into main Dec 1, 2025
6 checks passed
@cpsievert cpsievert deleted the feat/py-data-module branch December 1, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[py] Provide a .data package/module

2 participants